﻿<%@ Page Language="VB" MasterPageFile="~/MasterCliente.master" AutoEventWireup="false" CodeFile="BuscarServicios.aspx.vb" Inherits="BuscarServicios" title="Página sin título" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table width=100%>
        <tr>
            <td align=center>
                <asp:Label ID="lblcategoria" runat="server" Font-Bold="True"></asp:Label></td>
         </tr>
         <tr>
            <td align=center>
                <asp:Label ID="lblcriterio" runat="server" Font-Bold="True"></asp:Label></td>
         </tr>
         <tr>
            <td align=center style="height: 21px">
                &nbsp;<asp:Label ID="lblvacio" runat="server" Font-Bold="True"></asp:Label></td>
         </tr>
         <tr>
            <td align=center>
                <asp:GridView ID="gvservicios" runat="server" AllowPaging="True" OnPageIndexChanging="Cambiarpagina" AutoGenerateColumns="False"
                    CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="3"> 
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:BoundField DataField="COD_SERV" HeaderText="C&#211;DIGO" />
                        <asp:BoundField DataField="NOM_SERV" HeaderText="NOMBRE" />
                        <asp:BoundField DataField="PRE_SERV" HeaderText="PRECIO" />
                        <asp:TemplateField HeaderText="IMAGEN">
                            <ItemTemplate>
                             <img src='<%#Container.DataItem("FOTO_SERV")%>'ALT="Foto del Servicio" onclick='open("<%# Container.DataItem("FOTO_SERV")%>","","width=200,height=200,resizable,status=1,toolbar=1,menubar=1,scrollbars =1 ")' />&nbsp;<asp:Button ID="btnañadir" runat="server" OnCommand="AgregaralCarrito" CommandName='<%#Container.DataItem("COD_SERV")%>'
                                    Font-Size="Smaller" Text="Añadir al carrito" /><br />
                                <asp:LinkButton ID="lbdetalle" runat="server" OnCommand="VerDetalleServicio" CommandName='<%# Container.DataItem("COD_SERV") %>'>Ver detalle</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
         </tr>
        
    </table>


</asp:Content>

